package java_test.mtthod;

public class MyClass {
    int height;

    MyClass() {
        System.out.println("无参构造函数");
        height = 4;
    }

    MyClass(int i) {
        System.out.println("房子的高度为" + i + "米");
        height = i;
    }

    void info() {
        System.out.println("房子高度为 " + height + " 米");
    }

    void info(String s) {
        System.out.println(s + ": 房子高度为 " + height + " 米");
    }
}
